#-------------------------------------------------
#
# Project created by QtCreator 2020-12-21T10:07:28
#
#-------------------------------------------------
QT       += core gui
QT       += network #TCP通信添加
QT       += sql     #数据库使用
#CONFIG += console
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = MITM
TEMPLATE = app

# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
        main.cpp \
        mainwindow.cpp \
    mainui.cpp \
    rsa.cpp \
    aes.cpp \
    aes_gcm.cpp \
    diffie_hellman.cpp \
    middle.cpp \
    middlewindow.cpp \
    class_ip_rule.cpp

HEADERS += \
        mainwindow.h \
    mainui.h \
    rsa.h \
    aes.h \
    aes_gcm.h \
    diffie_hellman.h \
    middlewindow.h \
    middle.h \
    class_ip_rule.h

FORMS += \
        mainwindow.ui \
    mainui.ui \
    middlewindow.ui

RESOURCES += \
    images.qrc
LIBS += -L$$PWD/../../usr/lib/ -lssl -lcrypto

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../libpcap-1.10.1/release/ -lpcap
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../libpcap-1.10.1/debug/ -lpcap
else:unix: LIBS += -L$$PWD/../../../libpcap-1.10.1/ -lpcap

INCLUDEPATH += $$PWD/../../../libpcap-1.10.1
DEPENDPATH += $$PWD/../../../libpcap-1.10.1

win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../../../libpcap-1.10.1/release/libpcap.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../../../libpcap-1.10.1/debug/libpcap.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../../../libpcap-1.10.1/release/pcap.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../../../libpcap-1.10.1/debug/pcap.lib
else:unix: PRE_TARGETDEPS += $$PWD/../../../libpcap-1.10.1/libpcap.a


win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../usr/lib/x86_64-linux-gnu/release/ -ldbus-1
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../usr/lib/x86_64-linux-gnu/debug/ -ldbus-1
else:unix: LIBS += -L$$PWD/../../../../usr/lib/x86_64-linux-gnu/ -ldbus-1

INCLUDEPATH += $$PWD/../../../../usr/lib/x86_64-linux-gnu
DEPENDPATH += $$PWD/../../../../usr/lib/x86_64-linux-gnu

win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../../../../usr/lib/x86_64-linux-gnu/release/libdbus-1.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../../../../usr/lib/x86_64-linux-gnu/debug/libdbus-1.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/../../../../usr/lib/x86_64-linux-gnu/release/dbus-1.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/../../../../usr/lib/x86_64-linux-gnu/debug/dbus-1.lib
else:unix: PRE_TARGETDEPS += $$PWD/../../../../usr/lib/x86_64-linux-gnu/libdbus-1.a

#unix:!macx: LIBS += -L$$PWD/../../libpcap-1.10.1/ -lpcap

#INCLUDEPATH += $$PWD/../../libpcap-1.10.1
#DEPENDPATH += $$PWD/../../libpcap-1.10.1

#unix:!macx: PRE_TARGETDEPS += $$PWD/../../libpcap-1.10.1/libpcap.a
